﻿@using DataMongo
@model IEnumerable<DataMongo.Entities.Company>


@{
    ViewBag.Title = "Company";
    Layout = "~/Views/Shared/_LayoutProfile.cshtml";
}


<div class="row-fluid">
    <div class="span12">
        <h2>Company List</h2>
        <p>@Html.ActionLink("Create", "CompanyAdd", "Company", "", new { @class = "btn btn-info" })</p>
        <div class="table-responsive">
            <table class="table table-bordered table-hover table-striped tablesorter">
                <thead>
                    <tr>
                        <th>Company Name <i class="control-label"></i></th>
                        <th>Company Location <i class="control-label"></i></th>
                        <th>NO Of Staff <i class="control-label"></i></th>
                        <th>Country <i class="control-label"></i></th>
                        <th>Service Title <i class="control-label"></i></th>
                        <th>Service Desc <i class="control-label"></i></th>
                        <th>IsActive <i class="control-label"></i></th>

                        <th width="15%">

                        </th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var item in Model)
                    {
                        <tr>
                            <td>@item.CompanyName</td>
                            <td>@item.CompanyLocation</td>
                            <td>@item.No_of_Staff</td>
                            <td>@item.Country</td>
                            <td>@item.ServiceTitle</td>
                            <td>@item.ServiceDesc</td>

                            <td>
                                @if (item.isActive)
                                {
                                    <input type="checkbox" disabled="disabled" checked="checked" />
                                }
                                else
                                {
                                    <input type="checkbox" disabled="disabled" checked="checked" />
                                }

                            </td>

                            <td>
                                @Html.ActionLink("Edit", "CompanyEdit", new { id = item.CompanyID }) |
                                @Html.ActionLink("Delete", "CompanyDelete", new { id = item.CompanyID })
                            </td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
    </div>
</div>

